﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class UserPointRecord
    {

        /// <summary>
        /// 积分编号
        /// </summary>
        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string UserPointRecordId { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 可用积分
        /// </summary>
        public double? AvailablePoints { get; set; }

        /// <summary>
        /// 总积分
        /// </summary>
        public double? TotalPoints { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        public virtual ApplicationUser User { get; set; }

        public UserPointRecord()
        {
            this.UserPointRecordId = Guid.NewGuid().ToString();
        }

    }

}